home *** CD-ROM | disk | FTP | other *** search
/ Extra! Mainframe / Extra! Mainframe for Windows 95.iso / snaserv / source / snaccah.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-01  |  3.8 KB  |  180 lines

  1. /***************************************************************************
  2. **
  3. **    File:            SNACCAH.H
  4. **    Purpose:        Sample application-specific DLL Custom
  5. **                    Action Handler routines for Acme Setup.
  6. **    Notes:
  7. **
  8. ****************************************************************************/
  9.  
  10. #include "setupapi.h"
  11. #include "cui.h"
  12. #include "stdtypes.h"
  13. #include "setupkit.h"
  14. #include "datadef.h"
  15.  
  16. #define STR_DETECT_TITLE "SNA Client for Windows 95"
  17. #define STR_DETECT_MSG   "This product requires at least a 386 " \
  18.              "processor, a VGA display, and Microsoft Windows 95."
  19.  
  20. #define cpu8086  0
  21. #define cpu80186 1
  22. #define cpu80286 2
  23.  
  24. #define wmdStandard 1
  25.  
  26. /*
  27.  * Detection Code Defines
  28.  */
  29. #define WINSOCKET_MAJOR 1
  30. #define WINSOCKET_MINOR 1
  31.  
  32.  
  33. typedef enum _WNC        /* File Needs Copying status */
  34.     {
  35.     wncHiVer,
  36.     wncEqVer,
  37.     wncLoVer,
  38.     wncNoFile,
  39.     wncUnknown
  40.     }  WNC;
  41.  
  42. /*
  43.  * Registry Entries to Add to the registry
  44.  */
  45. typedef enum _REGISTRYENTRIES
  46.     {
  47.     TransportRegistry,
  48.     SponsorRegistry,
  49.     SnaDomainRegistry,
  50.     WindowsTypeRegistry,
  51.     SnaVersionRegistry,
  52.     InvalidRegistryEntry
  53.     } REGISTRYENTRIES;
  54.  
  55. /*
  56.  * Registry Parameter values for removing from the registry
  57.  */
  58. typedef enum _REGISTRYPARAMS
  59.     {
  60.     RegistryRemoveKey,
  61.     RegistryRemoveSubKey,
  62.     InvalidRegistryParam
  63.     } REGISTRYPARAMS;
  64.  
  65. /*
  66.  * Registry Entries to Remove from the registry
  67.  */
  68. typedef enum _REGISTRYREMOVEENTRIES
  69.     {
  70.     SystemSnaParameters,
  71.     SystemSnaBase,
  72.     SoftwareSetup,
  73.     SoftwareCurrentVersion,
  74.     SoftwareSnaServer,
  75.     InvalidRemoveRegistryEntry
  76.     } REGISTRYREMOVEENTRIES;
  77.  
  78. /*
  79.  * Registry Information
  80.  */
  81. typedef enum _REGISTRYINFORMATION
  82.     {
  83.     RegistryKey,
  84.     RegistryValue,
  85.     RegistryData,
  86.     InvalidRegistryInformation
  87.     } REGISTRYINFORMATION;
  88.  
  89. /*
  90.  * Popup Strings
  91.  */
  92. typedef enum _POPUPSTRINGS
  93.     {
  94.     WindowTitle,
  95.     WindowMessage,
  96.     InvalidPopupStrings
  97.     } POPUPSTRINGS;
  98.  
  99. /* 
  100.  * Error Defines
  101.  */
  102. typedef enum _ERRORTYPE
  103.     {
  104.     RegistrationError,
  105.     ProtocolError,
  106.     DomainNameError,
  107.     PrimaryServerError,
  108.     SnaBaseRunningError,
  109.     SnaBaseComponentsRunningError,
  110.     ODBCInstallationError,
  111.     InvalidErrorType
  112.     } ERRORTYPE;
  113.  
  114. /* 
  115.  * Help Defines
  116.  */
  117. typedef enum _HELPTYPE
  118.     {
  119.     ClientModeHelp,
  120.     ProtocolHelp,
  121.     LocalClientHelp,
  122.     RemoteClientHelp,
  123.     InvalidHelpType
  124.     } HELPTYPE;
  125.  
  126. /*
  127.  * Function Prototypes
  128.  */
  129.  
  130. RC FAR PASCAL DetectMinimumHardware ( PCD pcd, POD pod, CAMF camf,
  131.                       PCAMFD pcamfd, SZ szData );
  132. RC FAR PASCAL SetClientParameters ( PCD pcd, POD pod, CAMF camf,
  133.                     PCAMFD pcamfd, SZ szData );
  134. RC FAR PASCAL CountInstalledApps ( PCD pcd, POD pod, CAMF camf,
  135.                    PCAMFD pcamfd, SZ szData );
  136. #ifndef ISVBUILD
  137. RC FAR PASCAL InstallODBCFiles ( PCD pcd, POD pod, CAMF camf,
  138.                    PCAMFD pcamfd, SZ szData );
  139. #endif
  140. void initDlgPosWnd(HWND hDlg);
  141.  
  142. void DisplayError( ERRORTYPE ErrorIndex);
  143.  
  144. void DisplayHelp( HELPTYPE HelpIndex);
  145.  
  146. BOOL CALLBACK ExitYesNoDlg( HWND hDlg, UINT message,
  147.                     WPARAM wParam, LPARAM lParam);
  148.  
  149. void ExitYesNoMB(void);
  150.  
  151. int AddRegistryEntry ( LPSTR RegistryKey,
  152.                        LPSTR RegistryName,
  153.                        LPSTR RegistryData );
  154.  
  155. int UpdateRegistry(void);
  156.  
  157. void RemoveRegistry(void);
  158.  
  159. BOOL SetupSystemParameters(PCD pcd, POD pod, CAMF camf,
  160.                PCAMFD pcamfd, SZ szData ); 
  161.  
  162. void GetInstalledProtocols( BOOL *MSFT_protocol, 
  163.                 BOOL *NOVELL_protocol, 
  164.                 BOOL *TCPIP_protocol);
  165.  
  166. BOOL CALLBACK ClientProtocolsDlg( HWND hDlg, UINT message,
  167.                       WPARAM wParam, LPARAM lParam);
  168.  
  169. BOOL CALLBACK RemoteClientDlg( HWND hDlg, UINT message,
  170.                    WPARAM wParam, LPARAM lParam);
  171.  
  172. BOOL CALLBACK LocalClientDlg( HWND hDlg, UINT message,
  173.                    WPARAM wParam, LPARAM lParam);
  174.  
  175. BOOL CALLBACK ClientModeDlg( HWND hDlg, UINT message,
  176.                  WPARAM wParam, LPARAM lParam);
  177.  
  178. void CreateInvisibleWindow(void);
  179.  
  180. void DestroyInvisibleWindow(void);